(function($){
var myflow = $.myflow;

$.extend(true,myflow.config.props.props,{
	name : {name:'name', label:'名称', value:'新建流程', editor:function(){return new myflow.editors.inputEditor();}},
	key : {name:'key', label:'标识', value:'', editor:function(){return new myflow.editors.inputEditor();}},
	index : {name:'index', label:'指标', value:''}
});

$.extend(true,myflow.config.tools.states,{
	start : {
				type : 'start',
				name : {text:'<<start>>'},
				text : {text:'开始'},
				img : {src : 'flow/img/start.png',width : 16, height:16},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'开始'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},
			end : {type : 'end',
				name : {text:'<<end>>'},
				text : {text:'结束'},
				img : {src : 'flow/img/end.png',width : 16, height:16},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'结束'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},
				
			manual : {type : 'manual',
				name : {text:'<<manual>>'},
				text : {text:'人工'},
				img : {src : 'flow/img/manual.png',width : 16, height:16},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'人工'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},				
			audit : {type : 'audit',
				name : {text:'<<audit>>'},
				text : {text:'审核'},
				img : {src : 'flow/img/audit.png',width :16, height:16},
				props : {
					text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'审核'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},				
			invoke : {type : 'invoke',
				name : {text:'<<invoke>>'},
				text : {text:'调用'},
				img : {src : 'flow/img/invoke.png',width : 16, height:16},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'调用'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},
			watch : {type : 'watch',
				name : {text:'<<watch>>'},
				text : {text:'等待'},
				img : {src : 'flow/img/watch.png',width : 16, height:16},
				props : {
					text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'等待'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},
			fork : {type : 'fork',
				name : {text:'<<fork>>'},
				text : {text:'分支'},
				img : {src : 'flow/img/fork.gif',width :16, height:16},
				props : {
					text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'分支'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}},
			join : {type : 'join',
				name : {text:'<<join>>'},
				text : {text:'合并'},
				img : {src : 'flow/img/join.gif',width :16, height:16},
				props : {
					text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'合并'},
					key : {name:'key', label:'标识', value:''},
					code : {name:'code', label:'编码', value:''}
				}}				
		});
})(jQuery);